#include "Entity.h"

Entity::Entity(void)
{
	baseHealth = 100;
	health = baseHealth;
	healthModifier = 0;
}

Entity::Entity(string einitName, Weapon einitWeapon, Armor einitArmor)
{
	baseHealth = 100;
	health = baseHealth;
	healthModifier = 0;
	name = einitName;
	
	Entity::GiveItem(einitWeapon);
	Entity::equippedWeapon = 0;

	for(int i = 0; i < 2; i++)
	{
		Armor a ("", 0, 0);
		armors[i] = a;
	}

	for(int i = 0; i < 5; i++)
	{
		Item t ("", 0);
		items[i] = t;
	}
}

void Entity::GiveItem(Weapon newWeapon)
{ 
	Entity::weapons.push_back(newWeapon); 
}


Entity::~Entity(void)
{
}
